package com.iplant.mes.service.po.sfc;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.iplant.base.po.BasePO;
import com.iplant.base.po.enums.DBSchemas;
import com.iplant.base.utils.annotation.condition.DBCondition;
import com.iplant.base.utils.annotation.field.DBField;
import com.iplant.base.utils.annotation.po.DBBasePO;

/**
 * 工件导出记录
 *
 * @author YouWang·Peng
 * 2024-5-28 09:06:34
 */
@DBBasePO(TableName = "sfc_workpiece_export_record", Name = false, Active = false, Schemas = DBSchemas.MES,
        CheckName = {"Code"}, CodeAuto = true, CodePrefix = "SWER" +
        "-{yyyyMMdd}-", CodeNum = 4)
public class SFCWorkpieceExportRecord extends BasePO {

    /**
     * 查询条件MD5加密值
     */
    @DBCondition
    @DBField
    public String MD5 = "";

    /**
     * 导出状态
     */
    @DBCondition
    @DBField
    public int Status = 0;

    /**
     * 文件下载路径
     */
    @DBField
    public String DownloadUrl = "";

    public SFCWorkpieceExportRecord() {
    }

    public SFCWorkpieceExportRecord(String MD5, int status, String downloadUrl) {
        this.MD5 = MD5;
        Status = status;
        DownloadUrl = downloadUrl;
    }

    @JsonProperty("MD5")
    public String getMD5() {
        return MD5;
    }

    public void setMD5(String MD5) {
        this.MD5 = MD5;
    }

    @JsonProperty("Status")
    public int getStatus() {
        return Status;
    }

    public void setStatus(int status) {
        Status = status;
    }

    @JsonProperty("DownloadUrl")
    public String getDownloadUrl() {
        return DownloadUrl;
    }

    public void setDownloadUrl(String downloadUrl) {
        DownloadUrl = downloadUrl;
    }
}
